//
//  YMBridging.h
//  YMMedical
//
//  Created by y s on 2023/6/19.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface YMBridging : NSObject

/** 登录 判断并登录*/
+ (BOOL)goLogin;
/** 登录 */
+ (void)goToLogin;
/** 忘记密码 */
+ (void)goToForgetPwdVC;
/** 修改密码 */
+ (void)goToChangePwdVC;
/** 扫描二维码 */
+ (void)gotoScanCodeVC:(BOOL)backStep
                isCard:(BOOL)isCard
           finishBlock:(void(^)(NSString *valueStr))finishBlock;

/**app home 页面 */
+ (void)goAppTabWithIndex:(NSInteger)index;
/** 回到首页 有alert */
+ (void)goHomeTabWithAlert;
/** 检测报告详情
 @param idStr 检测记录 id
 @param backHome 返回首页*/
+ (void)goToHealthTestReportVC:(BOOL)backHome
                   detectionId:(NSString *)idStr
                        target:(UIViewController *)target;
/** 1:用户协议 2:隐私政策 */
+ (void)goToProtocolVC:(NSInteger)type;
/** 呼叫电话 */
+ (void)callPhone:(NSString *)phone;
//H5
+ (void)goToWebVC:(NSString *)url
            title:(NSString *)title
     navBarHidden:(BOOL)navBarHidden;

/** 意见反馈 */
+ (void)goToFeedBackVC;
/** 被测试人管理 */
+ (void)goToTestUserVC;
/** 常见问题 */
+ (void)goToProblemViewController;
/** 产品说明 */
+ (void)goToProductSpecificationVC;
/** 我的设备 */
+ (void)goToMyDeviceViewController;

/** 分享 */
+ (void)goToShareWithTitle:(NSString *)title
                       url:(NSString *)url
                     image:(UIImage *)image
                   success:(void(^)(void))success;
//检查相机是否可用
+ (BOOL)checkCameraVideoStatus;

//切换语言
+ (NSString *)KLanguage:(NSString *)key;
//语言选择Sheet
+ (void)showLanguageSheet:(NSString *)chooseStr
                sureBlock:(void(^)(NSString *text))sureBlock;
/** 获取设置的语言名称*/
+ (NSString *)getSettingLanguage;


@end

NS_ASSUME_NONNULL_END
